﻿using Exiled.API.Features;
using RgCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VotingSystem;

[Vote("强制结束回合", 0.6)]
public class ForceEndRound : Votable
{
    public override string OnPassed()
    {
        RgCore.RgCore.ForceEnd = true;
        return "已执行强制结束回合";
    }

    public override bool Launchable(Player player, out string response)
    {
        if (player == null)
        {
            response = "必须指定一个发起者";
            return false;
        }
        response = "";
        return true;
    }
}